import { defineStore } from 'pinia'
import type { AuditVO } from '@/api/mall/product/audit'

export const useAuditStore = defineStore('audit', {
  state: () => ({
    currentAudit: null as AuditVO | null
  }),
  actions: {
    setCurrentAudit(audit: AuditVO) {
      this.currentAudit = audit
    },
    clearCurrentAudit() {
      this.currentAudit = null
    }
  }
}) 